﻿<Window x:Class="XbdSoft.WPFVersion.SampleWindow"
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:l="clr-namespace:XbdSoft.WPFVersion"
		ShowInTaskbar="False"
		Title="NotifyIconSample" Height="300" Width="300">
	<StackPanel>
		<l:NotifyIcon
			x:Name="notifyIcon"
			Text="{Binding ElementName=tipText,Path=Text}"
			Icon="Resources/NotifyIcon.ico"
			BalloonTipText="{Binding Text, ElementName=balloonTipText}"
			BalloonTipTitle="{Binding Text, ElementName=balloonTipTitle}"
			BalloonTipIcon="Info"
			MouseDoubleClick="OnNotifyIconDoubleClick">
			<l:NotifyIcon.ContextMenu>
				<ContextMenu>
					<MenuItem Header="Open" Click="OnOpenClick" />
					<MenuItem Header="Exit" Click="OnExitClick" />
				</ContextMenu>
			</l:NotifyIcon.ContextMenu>
		</l:NotifyIcon>
		<WrapPanel VerticalAlignment="Center">
			<TextBlock Text="Text:"/>
			<TextBox x:Name="tipText" />
		</WrapPanel>
		<Line />
		<WrapPanel VerticalAlignment="Center">
			<TextBlock Text="Balloon Title:"/>
			<TextBox Name="balloonTipTitle" />
		</WrapPanel>
		<WrapPanel VerticalAlignment="Center">
			<TextBlock Text="Balloon Text:"/>
			<TextBox Name="balloonTipText" />
		</WrapPanel>
		<Line />
		<Button Content="Change Visibility" Click="OnVisibilityClick" />
		<Button Content="Show Balloon" Click="OnBalloonClick" />
	</StackPanel>
</Window>
